package com.zrrd.gmall.user.fegin;

import com.zrrd.gmall.model.user.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("service-user")
public interface UserFeginClient {

    //获取用户的地址信息
    @GetMapping("/api/user/inner/findUserAddressByUserId/{userId}")
    public List<UserAddress> findUserAddressByUserId(@PathVariable("userId") String userId);
}
